package com.sky.mapper.user;

import com.sky.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

@Mapper
public interface UserMapper {

    /**查询openid是否存在，如果是新用户，需要实现注册功能*/
    @Select("select * from user where openid=#{openId}")
    User selectByOpenId(String openId);


    /**查询openid未存在，需要实现新用户注册功能*/
    void save(User user);

}
